home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 104 / MacAddict_104_2005-04.iso / Software / Internet & Communication / WordPress 1.2.2 freeware.dmg / wordpress / wp-admin / auth.php < prev    next >
Encoding:
PHP Script  |  2004-11-28  |  616 b   |  16 lines

  1. <?php
  2. require_once(ABSPATH . '/wp-config.php');
  3.  
  4. if ( (!empty($_COOKIE['wordpressuser_' . $cookiehash]) && !wp_login($_COOKIE['wordpressuser_' . $cookiehash], $_COOKIE['wordpresspass_' . $cookiehash], true))
  5.     || (empty($_COOKIE['wordpressuser_' . $cookiehash])) ) {
  6.     header('Expires: Wed, 5 Jun 1979 23:41:00 GMT'); // Michel's birthday
  7.     header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
  8.     header('Cache-Control: no-cache, must-revalidate');
  9.     header('Pragma: no-cache');
  10.  
  11.     header('Location: ' . get_settings('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI']));
  12.     exit();
  13. }
  14.  
  15. ?>
  16.